package com.test.person;

public class Student extends Person implements Exam{

    public Student(String name) {
        super(name);
    }

    @Override
    public void eat() {

    }

    @Override
    public void sport() {
        System.out.println("");
    }

    @Override
    public void learn() {
        System.out.println("learn make mom happy");
    }

    @Override
    public void exam() {  //实现抽象方法
        System.out.println("I hate exam");
    }
}
